package com.itheima.ydd.dto;

import com.itheima.ydd.entity.SysMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class SysMenuDto extends SysMenu {

    private List<SysMenu> children = new ArrayList<>();

    public void children(SysMenu sysMenuDto){
        children.add(sysMenuDto);
    }
}
